serde-big-array
Big array helper for serde. The purpose of this crate is to make (de-)serializing arrays of sizes > 32 easy. This solution is needed until serde adopts const generics support.
Bases on this snippet.
extern crate serde;
extern crate serde_derive;
extern crate serde_json;
extern crate serde_big_array;
big_array!
If you enable the const-generics
feature, you won't have to invoke the big_array
macro any more:
extern crate serde_derive;
use BigArray;
Important links:
- Original serde issue requesting large array support
- Const generics support issue on serde
- serde PR to add const generics support
- Rust const generics tracking issue
- Rust complex generic constants tracking issue
MSRV
The minimum supported Rust version (MSRV) is Rust 1.32.0.
License
This crate is distributed under the terms of both the MIT license and the Apache License (Version 2.0), at your option.
See LICENSE-APACHE and LICENSE-MIT for details.
License of your contributions
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.